//关于模块的 vuex设计

let about = {
  state: {
    myname: "毛不易"
  },
  namespaced: true,//开启命名空间 产生独立作用域
  mutations: {
    changeName (state, name) {
      state.myname = name
    }
  },
  actions: {
    actName ({ commit }, name) {
      commit("changeName", name)
    }
  },

}

export default about